<?php
// +---------------------------------------------------------------------+
// | OneBase    | [ WE CAN DO IT JUST THINK ]                            |
// +---------------------------------------------------------------------+
// | Licensed   | http://www.apache.org/licenses/LICENSE-2.0 )           |
// +---------------------------------------------------------------------+
// | Author     | Bigotry <3162875@qq.com>                               |
// +---------------------------------------------------------------------+
// | Repository | https://gitee.com/Bigotry/OneBase                      |
// +---------------------------------------------------------------------+

namespace app\admin\controller;

/**
 * 教室管理控制器
 */
class About extends AdminBase
{
    
    /**
     * 教室信息列表
     */
    public function onefloor()
    {
        
        $this->assign('list', $this->logicClassroom->getClassroomList());
        
        return $this->fetch('onefloor_list');
    }
    public function twofloor()
    {
        
        $this->assign('list', $this->logicClassroom->getClassroomList());
        
        return $this->fetch('twofloor_list');
    }
    public function threefloor()
    {
        
        $this->assign('list', $this->logicClassroom->getClassroomList());
        
        return $this->fetch('threefloor_list');
    }
    public function fourfloor()
    {
        
        $this->assign('list', $this->logicClassroom->getClassroomList());
        
        return $this->fetch('fourfloor_list');
    }
    public function fivefloor()
    {
        
        $this->assign('list', $this->logicClassroom->getClassroomList());
        
        return $this->fetch('fivefloor_list');
    }

    /**
     * 查询教室列表
     */
    public function classList()
    {
        $where = $this->logicClassroom->getWhere($this->param);
        
        $this->assign('list', $this->logicClassroom->getClassroomList($where));
        
        return $this->fetch('onefloor_list');
    }
/**
     * 占用教室列表
     */
    public function usedroomlist()
    {
        
        
        $where['status']=['eq',-2];
        $this->assign('list', $this->logicClassroom->getClassroomList($where));
        
        return $this->fetch('onefloor_list');
    }

    /**
     * 查询课程信息
     */
    public function tabletime_List()
    {
        $where = $this->logicClassroom->getWhere($this->param);
        
        $this->assign('list', $this->logicClassroom->getClassroomList($where));
        
        return $this->fetch('tabletime_list');
    }
}
    